package com.ytc.company.service.Impl;

import com.ytc.company.mapper.CompanyMapper;

import com.ytc.company.model.Company;
import com.ytc.company.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public void addCompany(Company company){
        companyMapper.addCompany(company);
    }

    @Override
    public void updateCompany(Company company){
        companyMapper.updateCompany(company);
    }

    @Override
    public Company getCompany(Integer userId){
        return companyMapper.getCompany(userId);
    }

}
